package hn.sigit.model.hnd.special;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@org.hibernate.annotations.Proxy(lazy=false)
@Table(name="HND_Counter", schema="hnd_special")
@Inheritance(strategy=InheritanceType.JOINED)
public class HND_Counter implements Serializable {
	private static final long serialVersionUID = 5017893330366357658L;
	
	private int id;
	private HND_CounterType type;
	private long count;
	
	
	@Id
	@Column(name="ID", nullable=false)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="hnd_counter_id_gen")
	@SequenceGenerator(name="hnd_counter_id_gen", sequenceName="hnd_counter_id_seq", allocationSize=1)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@Column(name="Type", nullable=false)
	@Enumerated(EnumType.STRING)
	public HND_CounterType getType() {
		return type;
	}
	public void setType(HND_CounterType type) {
		this.type = type;
	}
	
	@Column(name="Count", nullable=false)
	public long getCount() {
		return count;
	}
	public void setCount(long count) {
		this.count = count;
	}
	
	
}
